package com.zbf.config2;

import com.zbf.entity.TestUser;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/9/10  10:25
 * 描述:
 */
@Configuration
public class MyConfiguration02 {

    @Bean
    @ConditionalOnClass(name = {"com.zbf.entity.TestUser"})
    public TestUser gettttt(){

        System.out.println("========8888888888=============");
        return new TestUser();
    }

}
